package com.example.leetcode.graph;

import com.example.leetcode.graph.common.GraphUtils;

import java.util.Arrays;
import java.util.List;

class Solution127 {
    public int ladderLength(String beginWord, String endWord, List<String> wordList) {
        return GraphUtils.ladderLength(beginWord, endWord, wordList);
    }
}

public class leetcode127 {
    public static void main(String[] args) {
        Solution127 solution127 = new Solution127();
        String beginWord = "hit", endWord = "cog";
        String[] wordList = {"hot", "dot", "dog", "lot", "log", "cog"};
        System.out.println(solution127.ladderLength(beginWord, endWord, Arrays.asList(wordList)));
    }
}
